package cn.wink.springcloud;

import cn.wink.myrule.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * 订单 消费服务
 * @author xw
 * @date 2020-05-03 14:12
 */
@RibbonClient(name = "CLOUD-PAYMENT-SERVICE",configuration = MySelfRule.class)           //访问服务，使用指定负载均衡策略
@EnableEurekaClient     //eureka 客户端
@SpringBootApplication
public class Order80 {
    public static void main(String[] args) {
        SpringApplication.run(Order80.class, args);
    }

}
